package com.jk.customer.dao;

import com.jk.customer.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SellerWzyDao {
    List<ProductEntity> getCommonTable(ProductEntity product);

    List<StatusTypeEntity> getPriceSelectClass();

    ProductEntity getParticulars(Object productId);

    List<ProductEntity> getPictureTable(ProductEntity product);

    List<StatusTypeEntity> getPictureSelectClass();

    ProductEntity getPictureParticulars(String pid);

    OfferFormEntity getProductByUserId(@Param("userId") Integer userId,@Param("productId") String productId);

    OrderFormEntity getOrderByUserId(@Param("userRealName") String userRealName, @Param("productId") String productId);

    PictureFile getPictureFileById(@Param("userId") Integer userId, @Param("productId") String productId);

    PictureFile getPictureFileStart(@Param("userId") Integer userId, @Param("productId") String productId);

    void giveUpById(@Param("productId")String productId,@Param("userId") Integer userId);
}
